<template>
  <div class="advice-wrap"
       v-if="list.length">
    <div class="title">专家研判</div>
    <div class="content">
      <div class="item fold-hide"
           v-for="item in list">
        <div class="top">
          {{item.userName}}
          <!--<phone-call :item="item"></phone-call>-->
          <br/>
          <span class="time">{{item.judgedTime}}</span>
        </div>
        <pre class="txt" v-html="item.advice" v-if="item.judgedTime"></pre>
        <pre class="txt" v-html="'未研判'" v-else></pre>
      </div>
    </div>
    <foldWrap :list="list"></foldWrap>
  </div>
</template>

<script>
  import foldWrap from "../commonComponents/fold.vue"
  import phoneCall from "./phoneCall"
  import actionSheetTalk from "./actionSheetTalk.vue"
  export default {
    props:{
      title:{
        default:"请示意见"
      },
      status:{
        default:"approvalStatue"
      },
      id:{
        default:false
      }
    },
    data(){
      return{
        actionData:_data.actionDataTalk,
        actionShow:false,
        articleID:false,
        list:[]
      }
    },
    created(){
      if (this._props.id) {
        _ajax.noLoading(_ajaxUrls.judged.url,
          {
            size: 999,
            page: 1,
            articleID: this._props.id,
          },
          (ajData) => {
            this.list = ajData.result.records;
          }, "get");
      }
    },
    components: {
      foldWrap,
      actionSheetTalk,
      phoneCall,
    },
  }
</script>
